#!/bin/sh
CONFIG=/etc/plymouth/plymouthd.conf

if [ -f "$CONFIG" ]; then
	grep -q '^Theme=' "$CONFIG" || sed -i 's/#\([T\[]\)/\1/' "$CONFIG"
	echo 'FEATURES += plymouth' >> /etc/initrd.mk
fi
